/**
 * jims
 */
package com.jims.master.modules.drug.dao;

import com.jims.master.common.persistence.CrudDao;
import com.jims.master.common.persistence.annotation.MyBatisDao;
import com.jims.master.modules.drug.entity.DrugSupplierCata;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * DAO接口
 * @author 系统管理员
 * @version 2017-03-01
 */
@MyBatisDao
public interface DrugSupplierCataDao extends CrudDao<DrugSupplierCata> {

    /**
     * 自动补全查询
     * @param drugSupplierCata
     * @param q
     * @return
     * @author CTQ
     */
    public List<DrugSupplierCata> findAutoCompleteList(DrugSupplierCata drugSupplierCata, @Param("q") String q,@Param("limit")String limit,@Param("supplierClass")String supplierClass);

    /**
     * 根据厂商名称来获取厂商数据
     * @param supplierName
     * @return
     * @author DT
     */
    public List<DrugSupplierCata> getListBySupplierName(@Param("supplierName")String supplierName,@Param("id")String id);
}